<include file="Public:header"/>
<div class="listbox">
    <div class="listhead">
        <h3>消防器材申请--申请记录</h3>
    </div>
    <if condition="$is_have eq 1">
    <div >
        <table >
            <form action="{:U('Home/Fire/tongji')}" method="POST" >
                <tr>
                    <td width="" align="left">&nbsp;
                        <input type="text" value="<?php echo $now ?>" name="stime"
                               onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                    </td>
                    <td width="" align="left">&nbsp;
                        <input type="text" value="<?php echo $now ?>" name="etime"
                               onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                    </td>
                    <td width="" align="left">&nbsp;
                        <button type="submit"  class="btn btn-info btn-lg">统计</button>
                    </td>
                </tr>
            </form>
        </table>
    </div>
    </if>
    <div class="listmain">
        <table class="list_g_permit_tab1">
            <tbody>

            <tr>
                <td class="td_num">消防器材申请编号</td>
                <td class="td_time">时间</td>
                <td class="td_name">申请人</td>
                <td class="td_status">状态</td>
                <td class="td_remark">备注</td>
            </tr>
            </tbody>
        </table>

        <div class="listdiv">
            <ul>

                <foreach name="list" item="l_val" key="l_k">
                    <li>
                        <a href="{:U('Home/Fire/view',array('id'=>$l_val['id'],'type'=>$l_val['status']))}"
                           target="_blank">
                            <span class="list_num">{$l_val.tab_fire_id}</span>
                            <span class="list_time">{$l_val.apply_time}</span>
                            <span class="list_name">{$l_val.staff_name}</span>
                            <span class="list_status">
                                <if condition="$l_val['status'] eq 1">
                                    待审核
                                    <elseif condition="$l_val['status'] eq 2"/>
                                    已通过
                                    <elseif condition="$l_val['status'] eq 3"/>
                                    未通过
                                </if>
                            </span>
                            <span class="list_remark">{$l_val.remark|default="无"}</span>
                        </a>
                    </li>
                </foreach>


            </ul>
        </div>

    </div>
    <div class="listbottom">
        {$page}

        <!-- 共<em>1</em>条，分<em>1</em>页，当前第<em>1</em>页 &nbsp &nbsp <a href="#">最前页</a>&nbsp <a href="#">上一页</a>&nbsp <a href="#">下一页</a>&nbsp <a href="#">最末页</a>&nbsp  -->

    </div>
</div>

</div>
</div>
</div>
</body>
</html>
